$(function () {
  // 左侧搜索框
  $('.aside-left .btn').click(function () {
    // 获取input的值
    const key = $('.keys').val()
    window.location.href = `search.html?key=${key}`
  })

  // 右侧搜索框
  $('.aside-right .item .search-url  .btn').click(function () {

    //获取input的值
    const key = $('.aside-right  .search-url .keys-url').val()
    console.log(key);
    window.location.href = `search.html?key=${key}`
  })

})